from dataclasses import dataclass
from injector import inject
from pkg.sqlalchemy import SQLAlchemy
from internal.model.upload_file import UploadFile
from .base_service import BaseService


@inject
@dataclass
class UploadFileService(BaseService):
    db: SQLAlchemy

    def upload_file(self, **kwargs) -> UploadFile:
        return self.create(UploadFile, **kwargs)
